| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

DecodedMeshData.h
1 // DecodedMeshData.h
3 //
5
6 namespace nkGraphics
7 {
11 struct DecodedMeshData final
12 {
13
14 // Attributes
15 nkMemory::BufferCast<nkMemory::Buffer> _vertexBuffers ;
16 nkMemory::Buffer _indexBuffer ;
17
18 MeshInputLayout _inputLayout ;
19
20 unsigned int _vertexCount = 0u ;
21 unsigned int _indexCount = 0u ;
22
23 INDEX_FORMAT _indexFormat = nkGraphics::INDEX_FORMAT::UINT32 ;
24 PRIMITIVE_TOPOLOGY _topology = PRIMITIVE_TOPOLOGY::TRIANGLELIST ;
25 } ;
26 }
nkGraphics::DecodedMeshData::_vertexBuffers
nkMemory::BufferCast< nkMemory::Buffer > _vertexBuffers
List of vertex buffers, binary packed.
Definition: DecodedMeshData.h:15
nkGraphics::DecodedMeshData::_inputLayout
MeshInputLayout _inputLayout
The input layout describing the vertex data.
Definition: DecodedMeshData.h:18
nkGraphics::INDEX_FORMAT
INDEX_FORMAT
Enumerates all formats supported for indices in a mesh.
Definition: IndexFormat.h:12
nkGraphics::MeshInputLayout
Describes the layout of data inside a mesh.
Definition: MeshInputLayout.h:12
nkGraphics::DecodedMeshData
Holds data about a decoded mesh.
Definition: DecodedMeshData.h:12
nkGraphics::DecodedMeshData::_vertexCount
unsigned int _vertexCount
The number of vertices available.
Definition: DecodedMeshData.h:20
nkGraphics::PRIMITIVE_TOPOLOGY
PRIMITIVE_TOPOLOGY
Enumerates all primitive topologies supported for meshes.
Definition: PrimitiveTopology.h:14
nkMemory::Buffer
A buffer holding binary data.
Definition: Buffer.h:32
nkGraphics::DecodedMeshData::_topology
PRIMITIVE_TOPOLOGY _topology
The mesh topology.
Definition: DecodedMeshData.h:24
nkGraphics::DecodedMeshData::_indexBuffer
nkMemory::Buffer _indexBuffer
The index buffer, if available.
Definition: DecodedMeshData.h:16
nkMemory::BufferCast< nkMemory::Buffer >
nkGraphics::DecodedMeshData::_indexFormat
INDEX_FORMAT _indexFormat
The indices format in memory.
Definition: DecodedMeshData.h:23
nkGraphics::DecodedMeshData::_indexCount
unsigned int _indexCount
The number of indices available.
Definition: DecodedMeshData.h:21
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::INDEX_FORMAT::UINT32
@ UINT32
Unsigned integer.
nkGraphics::PRIMITIVE_TOPOLOGY::TRIANGLELIST
@ TRIANGLELIST
Triangle list.